package com.example.springgobang;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class SpringGobangApplication {
    // 创建一个 ConfigurableApplicationContext 对象
    public static ConfigurableApplicationContext context;

    public static void main(String[] args) {
        // 使用 context 接收 run 的返回值
        context = SpringApplication.run(SpringGobangApplication.class, args);
    }

}
